package com.day08;

public class Person {

    String name;
    int age = 2;

    public Person() {
        System.out.printf("父类构造方法");
    }


    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }


    public void eat() {
        System.out.println("吃东西");
    }

    public void sleep() {
        System.out.println("睡觉");
    }

}
